widget: Fix propagation of gesture cancellation on widget unrealize/destroy
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 10:06:46 +0000 (12:06 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Sep 2015 17:14:10 +0000 (19:14 +0200)
commit3aaf730901d04a3e4a102cb95e769a48ec5027e3
treea72a2a26a6938b805b885a5683c283904b2d662c
parent5b6360ebb2dd64b7089d0a2779eadb461ddbf3b6
widget: Fix propagation of gesture cancellation on widget unrealize/destroy

At the time event_check_cancel_sequence_on_hierarchy() is called, the widget
has been already unparented. Given the widget itself is being destroyed,
cancellation on it is impending in one way or another, we still must
propagate cancellation across all parents, so retrieve it early before
possible widget destruction.

https://bugzilla.gnome.org/show_bug.cgi?id=754098
gtk/gtkwidget.c